<div class="layui-form-item">
    <label class="layui-form-label">{$value['desc']}</label>
    <div class="layui-input-block">
        {foreach $value['option'] as $keys=>$va}
        {if isset($va['id'])}
            {if $value['isidtoname']}
                {if in_array($va['id'],$value['value'])}
                <input class="{$value['class']}" style="{$value['style']}" type="checkbox" name="{$value['name']}[]" value="{$va['id']}" title="{$va['name']}" checked>
                {else}
                <input class="{$value['class']}" style="{$value['style']}" type="checkbox" name="{$value['name']}[]" value="{$va['id']}" title="{$va['name']}">
                {/if}
            {else}
                {if in_array($keys,$value['value'])}
                <input class="{$value['class']}" style="{$value['style']}" type="checkbox" name="{$value['name']}[]" value="{$va['id']}" title="{$va['name']}" checked>
                {else}
                <input class="{$value['class']}" style="{$value['style']}" type="checkbox" name="{$value['name']}[]" value="{$va['id']}" title="{$va['name']}">
                {/if}
            {/if}
        {else}
            {if $value['isidtoname']}
                {if in_array($keys,$value['value'])}
                <input class="{$value['class']}" style="{$value['style']}" type="checkbox" name="{$value['name']}[]" value="{$va}" title="{$va}" checked>
                {else}
                <input class="{$value['class']}" style="{$value['style']}" type="checkbox" name="{$value['name']}[]" value="{$va}" title="{$va}">
                {/if}
            {else}
                {if in_array($va,$value['value'])}
                <input class="{$value['class']}" style="{$value['style']}" type="checkbox" name="{$value['name']}[]" value="{$va}" title="{$va}" checked>
                {else}
                <input class="{$value['class']}" style="{$value['style']}" type="checkbox" name="{$value['name']}[]" value="{$va}" title="{$va}">
                {/if}
            {/if}
        {/if}
        {/foreach}
        <br>
        <span class="red" style="font-size: 10px">{$value['describe']}</span>
    </div>
</div>